/**
 * 项目物料基本信息 api 封装
 *
 * @Author:    yurui
 * @Date:      2024-07-20 15:28:57
 * @Copyright  jz
 */
import { postRequest, getRequest } from '/@/lib/axios';

export const materialBaseApi = {

  /**
   * 分页查询  @author  yurui
   */
  queryPage : (param) => {
    return postRequest('/materialBase/queryPage', param);
  },

  /*
   * 增加  @author  yurui
   */
  add: (param) => {
      return postRequest('/materialBase/add', param);
  },

  /**
   * 修改  @author  yurui
   */
  update: (param) => {
      return postRequest('/materialBase/update', param);
  },


  /**
   * 删除  @author  yurui
   */
  delete: (id) => {
      return getRequest(`/materialBase/delete/${id}`);
  },

  /**
   * 批量删除  @author  yurui
   */
  batchDelete: (idList) => {
      return postRequest('/materialBase/batchDelete', idList);
    },
    //   分页查询
    PaginationQuery: (queryForm) => {
        return postRequest('/materialBase/queryPage',queryForm)
    },
    //弹框分类
    ClassificationData: (param) => {
        return postRequest('/category/tree',param)
    }

};
